projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7e1d89
)
(make_conversion_work_buffer): Disable buffer modification hooks in
author
Chong Yidong
<cyd@stupidchicken.com>
Sun, 7 Dec 2008 00:58:47 +0000
(
00:58
+0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Sun, 7 Dec 2008 00:58:47 +0000
(
00:58
+0000)
the work buffer.
src/coding.c
patch
|
blob
|
history
diff --git
a/src/coding.c
b/src/coding.c
index ff0e5b0643eedf4defce32716d67dee98aac7936..e92dfa45e21e65fbf645340fbfa6628a3c2ec62f 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-7032,6
+7032,10
@@
make_conversion_work_buffer (multibyte)
}
current = current_buffer;
set_buffer_internal (XBUFFER (workbuf));
+ /* We can't allow modification hooks to run in the work buffer. For
+ instance, directory_files_internal assumes that file decoding
+ doesn't compile new regexps. */
+ Fset (Fmake_local_variable (Qinhibit_modification_hooks), Qt);
Ferase_buffer ();
current_buffer->undo_list = Qt;
current_buffer->enable_multibyte_characters = multibyte ? Qt : Qnil;